<template>
  <view class="my_container">
    <my_login v-if="!token"></my_login>
    <my_userinfo v-else></my_userinfo>
  </view>
</template>

<script>
  import {
    mapState,
    mapGetters
  } from 'vuex';
  import badgeMix from '@/mixins/tabbar-bage.js'
  export default {
    mixins: [badgeMix],
    computed: {
      ...mapGetters('m_cart', ['total']), // 确保命名空间和状态正确
      ...mapState('m_user', ['token'])
    },
onShow() {
  console.log(this.token)
},
    data() {
      return {

      }
    },

    methods: {

    }
  }
</script>

<style lang="scss">
  page,
  my_container {
    height: 100%;
    background-color: gray;
    
  }
</style>